package com.czf.common.util;

import org.springframework.beans.factory.annotation.Autowired;

import java.time.Instant;

/**
 * @Author chenzhanfan
 * @Date 2022/3/21
 * @Description
 */
public class CommonUtils {


    // 获取随机id
    public static Long uuid(){
        return new UuidGenerator().nextId();
    }

    // 获取时间戳
    public static Long timeStamp(){
        return System.currentTimeMillis();
    }
}
